<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: BiXEntropy Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_bi_x_entropy-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">BiXEntropy Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Filtering mode 3: bilingual cross-entropy.  
 <a href="class_bi_x_entropy.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="bi_x_entropy_8h_source.html">biXEntropy.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for BiXEntropy:</div>
<div class="dyncontent">
<div class="center"><img src="class_bi_x_entropy__inherit__graph.png" border="0" usemap="#_bi_x_entropy_inherit__map" alt="Inheritance graph"/></div>
<map name="_bi_x_entropy_inherit__map" id="_bi_x_entropy_inherit__map">
<area shape="rect" id="node2" href="class_mode.html" title="Filtering modes interface. " alt="" coords="22,5,77,31"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for BiXEntropy:</div>
<div class="dyncontent">
<div class="center"><img src="class_bi_x_entropy__coll__graph.png" border="0" usemap="#_bi_x_entropy_coll__map" alt="Collaboration graph"/></div>
<map name="_bi_x_entropy_coll__map" id="_bi_x_entropy_coll__map">
<area shape="rect" id="node2" href="class_mode.html" title="Filtering modes interface. " alt="" coords="22,5,77,31"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a254eee402458f2e9fd7281a1119b2e5c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bi_x_entropy.html#a254eee402458f2e9fd7281a1119b2e5c">BiXEntropy</a> ()</td></tr>
<tr class="memdesc:a254eee402458f2e9fd7281a1119b2e5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a254eee402458f2e9fd7281a1119b2e5c">More...</a><br /></td></tr>
<tr class="separator:a254eee402458f2e9fd7281a1119b2e5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4db749ee749788c891e1890d3ef15066"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bi_x_entropy.html#a4db749ee749788c891e1890d3ef15066">~BiXEntropy</a> ()</td></tr>
<tr class="memdesc:a4db749ee749788c891e1890d3ef15066"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="#a4db749ee749788c891e1890d3ef15066">More...</a><br /></td></tr>
<tr class="separator:a4db749ee749788c891e1890d3ef15066"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55ad423050eae54a09ce73ca24598ca4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bi_x_entropy.html#a55ad423050eae54a09ce73ca24598ca4">launch</a> ()</td></tr>
<tr class="memdesc:a55ad423050eae54a09ce73ca24598ca4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function in charge of launching the filtering mode.  <a href="#a55ad423050eae54a09ce73ca24598ca4">More...</a><br /></td></tr>
<tr class="separator:a55ad423050eae54a09ce73ca24598ca4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_mode"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_mode')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_mode.html">Mode</a></td></tr>
<tr class="memitem:a8876d05ec6622862d06880fa55c590ab inherit pub_methods_class_mode"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mode.html#a8876d05ec6622862d06880fa55c590ab">~Mode</a> ()=0</td></tr>
<tr class="memdesc:a8876d05ec6622862d06880fa55c590ab inherit pub_methods_class_mode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pure virtual destructor.  <a href="#a8876d05ec6622862d06880fa55c590ab">More...</a><br /></td></tr>
<tr class="separator:a8876d05ec6622862d06880fa55c590ab inherit pub_methods_class_mode"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_static_methods_class_mode"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_class_mode')"><img src="closed.png" alt="-"/>&#160;Static Protected Member Functions inherited from <a class="el" href="class_mode.html">Mode</a></td></tr>
<tr class="memitem:a4f9db1a2844c3f9be520c2882446443a inherit pro_static_methods_class_mode"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mode.html#a4f9db1a2844c3f9be520c2882446443a">findSampleSize</a> (boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; idCorp, boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; oodCorp)</td></tr>
<tr class="memdesc:a4f9db1a2844c3f9be520c2882446443a inherit pro_static_methods_class_mode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the optimal sample size for the OOD <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a>.  <a href="#a4f9db1a2844c3f9be520c2882446443a">More...</a><br /></td></tr>
<tr class="separator:a4f9db1a2844c3f9be520c2882446443a inherit pro_static_methods_class_mode"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08d61f2bf10a36780a805fd64f43886d inherit pro_static_methods_class_mode"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_corpus.html">Corpus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mode.html#a08d61f2bf10a36780a805fd64f43886d">extractSample</a> (boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; ptrCorp, int sSize, bool mean)</td></tr>
<tr class="memdesc:a08d61f2bf10a36780a805fd64f43886d inherit pro_static_methods_class_mode"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extracts a random sample from a give <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a>.  <a href="#a08d61f2bf10a36780a805fd64f43886d">More...</a><br /></td></tr>
<tr class="separator:a08d61f2bf10a36780a805fd64f43886d inherit pro_static_methods_class_mode"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Filtering mode 3: bilingual cross-entropy. </p>
<p>This class derived from <a class="el" href="class_mode.html" title="Filtering modes interface. ">Mode</a> handles the third filtering mode: bilingual cross-entropy </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a254eee402458f2e9fd7281a1119b2e5c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BiXEntropy::BiXEntropy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a class="anchor" id="a4db749ee749788c891e1890d3ef15066"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BiXEntropy::~BiXEntropy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a55ad423050eae54a09ce73ca24598ca4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int BiXEntropy::launch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function in charge of launching the filtering mode. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if the filtering succeeds </dd></dl>

<p>Implements <a class="el" href="class_mode.html#af43f7539ee52f4ffa38e532fa1144ef2">Mode</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/modes/<a class="el" href="bi_x_entropy_8h_source.html">biXEntropy.h</a></li>
<li>src/modes/<a class="el" href="bi_x_entropy_8cpp.html">biXEntropy.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
